<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>初始vue</title>
    <script type="text/javascript"  src="../js/vue.js"></script>
</head>



<body>
    <div id="root">
        <div>你好,{{name}}</div>

       <div v-text="name">asdasd</div>
       
    </div>
</body>

<script type="text/javascript">
   Vue.config.productionTip=false;
    let vm =new Vue({
        el:"#root",
        data:{
            name:'<h1>nihao</h1>'
        }
    })

    
</script>
</html>